<template>
  <ul class="contact-container">
    <li>
      <a href="">
        <div class="Icon">
          <IndexIcon type="github" />
        </div>
        <span>DuYi-Edu</span>
      </a>
    </li>
    <li>
      <a href="">
        <div class="Icon"><IndexIcon type="mail" /></div>
        <span>duyi@gmail.com</span>
      </a>
    </li>
    <li>
      <a href="">
        <div class="Icon"><IndexIcon type="qq" /></div>
        <span>282181305</span>
        <div class="pop">
          <img
            src="http://img.mp.itc.cn/upload/20170222/63fbb124df054657a4905c355d4f7328_th.jpeg"
            alt=""
          />
        </div>
      </a>
    </li>
    <li>
      <a href="">
        <div class="Icon weixin"><IndexIcon type="weixin" /></div>
        <span>yh777bao</span>
      </a>
    </li>
  </ul>
</template>

<script>
import IndexIcon from "../Icon/IndexIcon";
export default {
  components: {
    IndexIcon,
  },
};
</script>

<style lang="less" scoped>
@import "~@/style/var.less";
.contact-container {
  margin: 0;
  padding: 20px;
  color: @gray;
  @itemHeight: 30px;

  li {
    position: relative;
    line-height: @itemHeight;
    margin: 14px 0;
    &:hover {
      .pop {
        transform: scaleY(1);
      }
    }
  }
  a {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-left: 8px;
  }
  .Icon {
    font-size: 36px;
    width: 36px;
    &.weixin {
      font-size: 24px;
      text-indent: -3px;
    }
  }
  .pop {
    position: absolute;
    left: 0;
    bottom: @itemHeight + 5px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 5px;
    transform: scaleY(0);
    transform-origin: center bottom;
    transition: 0.3s;
   
    img {
      width: 150px;
      height: 150px;
      
    }
    &::after {
      content: "";
      position: absolute;
      left: 50%;
      transform: translateX(-50%) rotate(45deg);
      width: 8px;
      height: 8px;
      background: #fff;
      bottom: -4px;
    }
  }
}
</style>